package com.service.impl;

import com.service.UserService;
import com.dao.UserDao;
import com.pojo.User;

import java.util.List;

public class UserServiceImpl implements UserService {

    UserDao userDao;
    //调用UserDao接口中的方法
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> selectAll() {
        return userDao.selectAll();
    }
}
